{temp('html/recruit/pc/head')}
</head>
<script type="text/javascript">
		function xiugai(){
			var zwid = $('input:radio[name=xuan]:checked').val();
			if(zwid){
				art.dialog.open('{$_url}/?act=firm&met=fbqxs&id='+zwid,{id:'xiu',title:'',lock:true},false);
			}else{
				alert('请选择职位');
			}
		}
		function closeWindow(){
			art.dialog.list['xiu'].close();
		}
		function yulan(){
			var zwid = $('input:radio[name=xuan]:checked').val();
			if(zwid){
				location.href='{$_url}/?act=firm&met=gw_xxs&qid={$_SESSION['firm_id']}&id='+zwid;
			}else{
				alert('请选择职位');
			}
		}
		
		function weituo(){
			var zwid = $('input:radio[name=xuan]:checked').val();
			if(zwid){
				$.post('{$_url}/?act=firm&met=fbqx',{id:zwid,type:4},function(data){
					alert(data);
					if(data == '委托成功'){
						location.href='{$_url}/?act=firm&met=zpgl';
					}
				});
			}else{
				alert('请选择职位');
			}
		}
		
		function tingzhi(){
			var zwid = $('input:radio[name=xuan]:checked').val();
			if(zwid){
				$.post('{$_url}/?act=firm&met=fbqx',{id:zwid},function(data){
					alert(data);
					if(data == '停止成功'){
						location.href='{$_url}/?act=firm&met=zpgl';
					}
				});
			}else{
				alert('请选择职位');
			}
		}
		
		function fabu(){
			var zwid = $('input:radio[name=xuan]:checked').val();
			if(zwid){
				$.post('{$_url}/?act=firm&met=fbqx',{id:zwid,type:3},function(data){
					alert(data);
					if(data == '发布成功'){
						location.href='{$_url}/?act=firm&met=zpgl';
					}
				});
			}else{
				alert('请选择职位');
			}
		}
		
		function shanchu(id){
			$.post('{$_url}/?act=firm&met=fbsc',{id:id},function(data){
				alert(data);
				if(data == '删除成功'){
					location.href='{$_url}/?act=firm&met=zpgl';
				}
			});
		}
		function qiehuan (i) {
			if(i == 1){
				location.href='{$_url}/?act=firm&met=zpgl&type=1';
			}else if(i == 2){
				location.href='{$_url}/?act=firm&met=zpgl&type=2';
			}else if(i == 3){
				location.href='{$_url}/?act=firm&met=zpgl&type=3';
			}else{
				location.href='{$_url}/?act=firm&met=zpgl';
			}
		}
		
		function shuaxin(id){
			$.post('{$_url}/?act=firm&met=gwsx',{id:id},function(data){
				alert(data);
				if(data == '刷新成功'){
					location.href='{$_url}/?act=firm&met=zpgl';
				}
			});
		}
	</script>
<body>
	<!--容器-->
	{temp('html/recruit/pc/firm/head')}
		<!--头部结束-->
		
		<!--主体内容-->
		<div class="w_bai dis_inline t_m10 t_c">
			<!--详细-->
			<div class="w_1100 auto_0">
				<!--左侧-->
				<div class="w_286 f_l c_656565 bc_FFF bor_C6 xddw" style="margin-top:-61px">
					<!--右阴影图片-->
					<div class="f_r xddw" style="margin-right:-38px;margin-top:-1px">
						<img src="{$style}/images/yinying_you2.png">
					</div>
					<!--右阴影图片结束-->
					<!--标题-->
					<div class="h_50 l_h50 f_s18 bc_127ABF c_FFF t_l">
						<span class="l_m20">职位管理</span>
					</div>
					<!--标题结束-->
					<!--列表-->
					<div id="geren_zuo">
						<ul>
							<li id="list">
								<div class="f_l shoudaojianli2"></div>
								<div class="dis_inline l_m10">
									<a href="{$_url}/?act=firm&met=zpgl">职位管理</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list2">
								<div class="f_l t_m3 fabu"></div>
								<div class="dis_inline l_m7">
									<a href="{$_url}/?act=firm&met=qyfb">发布新职位</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>
						</ul>
					</div>
					<!--列表结束-->
				</div>
				<!--左侧结束-->
				<!--右侧-->
				<div class="w_804 l_m5 f_r bc_FFF bor_C6 t_l">
					<!--标题-->
					<div class="t_m15 l_m20">
						<span class="f_s20 c_323131">职位管理</span>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="bor_C6 bor_di_none t_m10"></div>
					<!--分割线结束-->
					<!--提示刷新次数、发布和预览按钮-->
					<div class="l_m20 t_m20">
						<!--发布和预览按钮-->
						<div>
							<!--发布新视频-->
							<div id="bai" class="f_l w_150 h_35 bc_E16400 c_FFF l_h35 point">
								<div class="f_l t_m13 l_m28 jiahao" style="_margin-left:15px"></div>
								<div class="f_l l_m10">
									<a href="{$_url}/?act=firm&met=qyfb">发布新职位</a>
								</div>
							</div>
							<!--发布新视频结束-->
							<!--预览视频-->
							<div id="bai" class="f_l l_m10 w_150 h_35 bc_666 c_FFF l_h35 point">
								<div class="f_l t_m13 l_m33 kan3" style="_margin-left:16px"></div>
								<div class="f_l l_m10">
									<span onClick="yulan()">预览职位</span>
								</div>
							</div>
							<!--预览视频结束-->
						</div>
						<!--发布和预览按钮结束-->
					</div>
					<!--提示刷新次数、发布和预览按钮结束-->
					<!--标题-->
					<div class="f_l w_bai t_m25 ">
						<div class="f_s16 l_m25 c_323232" id="study">
							<ul class="point">
								<li id="tab0" onClick="qiehuan(0)">正在招聘的职位</li>
								<li id="tab1" onClick="qiehuan(1)">未发布的职位</li>
								<li id="tab2" onClick="qiehuan(2)">已停止的职位</li>
								<li id="tab3" onClick="qiehuan(3)">已委托的职位</li>
							</ul>
						</div>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="f_l t_m15 t_l l_m20" style="width:93.2%;_margin-left:10px">
						<div class="bor_C6 bor_di_none"></div>
						<div id="icon" class="f_l jddw" style="margin-top:-7px!important;margin-top:-16px;{if(@$type==1)} margin-left: 125px; {elseif(@$type==2)}margin-left: 255px; {elseif(@$type==3)}margin-left: 385px;{else} margin-left: 0px;{/if}">
							<img src="{$style}/images/study_xuan.png">
						</div>
					</div>
					<!--分割线结束-->
					<!--内容-->
					<div class="t_m10 l_m20 b_m50 c_656565 dis_inline">
						<!--列表-->
						<div id="table_shipin">
							<li class="bc_F5F5F5" style="border-bottom-style:none">
								<div class="left1">&nbsp;</div>
								<div class="left6">职位名称</div>
								<div class="left4">招聘人数</div>
								<div class="left4">结束时间</div>
								<div class="left6">查看次数</div>
								{if(@$type != '3')}<div class="right">操作</div>{/if}
							</li>
							{if(@$zw)}
							{foreach($zw as $k=>$v)}
							<li>
								<div class="left1">
									<input type="radio" name="xuan"  style="margin:12px" value="{$v['id']}" />
								</div>
								<div class="left6">{$v['name']}</div>
								<div class="left4">{$v['number']}</div>
								<div class="left4">{prt(date('Y-m-d',$v['jstime']))}</div>
								<div class="left6">{if(@$v['hits'])}{$v['hits']}{else}0{/if}</div>
								{if(@$type != '3')}<div class="point c_1379BF" style="margin-left:20px;" onClick="shanchu({$v['id']})">删除</div>{/if}
								{if(@$type != '3')}<div class="point c_1379BF" style="margin-left:20px;" onClick="shuaxin({$v['id']})">刷新</div>{/if}
							</li>
							{/foreach}
							{else}
							<li>暂无数据</li>
							{/if}
						</div>
						<!--列表结束-->
						<!--删除和修改-->
						<div class="w_bai t_m20 dis_inline">
							{if(@$type && $type == '2')}
							<div class="f_l l_m10 w_80 h_30 l_h30 bc_E0E0E0 c_656565 t_c bor_C6 point" onClick="fabu()">
								重新发布
							</div>
							{/if}
							{if(!@$type)}
							<div class="f_l l_m10 w_80 h_30 l_h30 bc_E0E0E0 c_656565 t_c bor_C6 point" onClick="tingzhi()">
								停止
							</div>
							{/if}
							{if(@$type && $type != '3')}
							<div id="zhuce" class="f_l l_m10 w_80 h_30 l_h30 bc_E0E0E0 c_656565 t_c bor_C6 point" onClick="weituo()">
								委托发布
							</div>
							{/if}
							{if(@$type != '3')}
							<div class="f_l l_m10 w_110 h_30 l_h30 bc_137ABF c_FFF t_c bor1_137ABF point" 
								onclick="xiugai()">修改截止日期
							</div>
							{/if}
						</div>
						<!--删除和修改结束-->
					</div>
					<!--内容结束-->
				</div>
				<!--右侧结束-->
			</div>
			<!--详细结束-->
		</div>
		<!--主体内容结束-->
{temp('html/recruit/pc/foot')}